﻿using BLL;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Dryricenet.houTai
{
    public partial class orderDetails_Details : System.Web.UI.Page
    {
        //1 请求参数成员变量列表
        public string OrderDetailsID = "";
        public string Ordertitle = "";
        public string FoodName = "";
        public string PicUrl = "";
        public string Number = "";
        public string OrderName = "";
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                int orderDetailsID = Convert.ToInt32(Request.QueryString["orderDetailsID"]);
                //根据id查询数据，并展示在输入框中
                DataTable dt = OrderDetailsBLL.orderDetailsXXBLL(orderDetailsID);
                //用DataRow来存一行数据
                DataRow dr = dt.Rows[0];//第一条数据
                //把数据一个一个的放进输入框里
                OrderDetailsID = dr["OrderDetailsID"].ToString();
                Ordertitle = dr["Ordertitle"].ToString();
                FoodName = dr["FoodName"].ToString();
                string prc = dr["PicUrl"].ToString();
                PicUrl = prc.Substring(1);
                Number = dr["Number"].ToString();
                OrderName = dr["OrderName"].ToString();
            }
        }
    }
}